using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

using BlueSky;
using BlueSky.Web;

using ExampleWebSite.Requests;
using ExampleWebSite.Services;

namespace ExampleWebSite.Controllers
{
    public class CalcController : ControllerBase<ICalcService>
    {
        public ActionResult Index()
        {
            return View();
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Sum(CalcRequest sr)
        {
            return View("Calc", Service.Sum(sr));
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Mul(CalcRequest sr)
        {
            return View("Calc", Service.Mul(sr));
        }        
    }
}
